GtkFontButton: Make sure the dialog isn't destroyed on delete-event
authorRui Matos <tiagomatos@gmail.com>
Thu, 5 Dec 2013 20:35:36 +0000 (21:35 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 29 Sep 2014 02:07:48 +0000 (22:07 -0400)
commitd05730db490641156ed46046dbd7099edd830004
tree1679bb09ea3b966fb897895e788c917b2ed59be0
parentdce69904d8451f2f8f3c827bdf676d2eb08d898a
GtkFontButton: Make sure the dialog isn't destroyed on delete-event

The remaining code assumes that the dialog doesn't get destroyed, but
it actually does on delete-event.

In particular, the filter function and the preview text are lost as
soon as the dialog is created and thus when we create a new dialog we
don't have those properties to set on it anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=719936
gtk/gtkfontbutton.c